package org.celery.modules.purchase.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 店铺表实体类
 *
 * @author Celery
 * @since 2023-07-16
 */
@Data
@TableName("celery_purchase")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Purchase对象", description = "店铺表")
public class Purchase extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 采购表主键id
     */
    @ApiModelProperty(value = "采购表主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 订单表id
     */
    @ApiModelProperty(value = "订单表id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long ticketId;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String userName;
    /**
     * 采购号
     */
    @ApiModelProperty(value = "采购号")
    private String purchaseNum;
    /**
     * 采购平台
     */
    @ApiModelProperty(value = "采购平台")
    private String platform;
    /**
     * 采购单
     */
    @ApiModelProperty(value = "采购单")
    private String purchaseCode;
    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    private BigDecimal amount;
    /**
     * 订单金额
     */
    @ApiModelProperty(value = "订单金额")
    private BigDecimal ticketAmount;
    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Integer count;
    /**
     * 商家id
     */
    @ApiModelProperty(value = "商家id")
    private String mailId;
    /**
     * 商家名称
     */
    @ApiModelProperty(value = "商家名称")
    private String mailName;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
}
